package com.oasystem.domain.fund;

import com.oasystem.domain.user.User;
import com.oasystem.enums.EApproveStatus;

/**
 * 拨款申请
 * 
 * @author
 * 
 */
public class AppropriationApplication {
	private String id;
	private String applicantId;
	private String applicantName;
	private Double amount;
	private String reason;
	private String rejectReason;
	private String applyDate;
	private User approver;
	private EApproveStatus approveStatus;
	private String approveDate;

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public String getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(String applyDate) {
		this.applyDate = applyDate;
	}

	public User getApprover() {
		return approver;
	}

	public void setApprover(User approver) {
		this.approver = approver;
	}

	public EApproveStatus getApproveStatus() {
		return approveStatus;
	}

	public void setApproveStatus(EApproveStatus approveStatus) {
		this.approveStatus = approveStatus;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getApplicantId() {
		return applicantId;
	}

	public void setApplicantId(String applicantId) {
		this.applicantId = applicantId;
	}

	public String getApproveDate() {
		return approveDate;
	}

	public void setApproveDate(String approveDate) {
		this.approveDate = approveDate;
	}

	public String getApplicantName() {
		return applicantName;
	}

	public void setApplicantName(String applicantName) {
		this.applicantName = applicantName;
	}

	public boolean isApprove() {
		return approveStatus == EApproveStatus.APPROVED;
	}

	public boolean isReject() {
		return approveStatus == EApproveStatus.DENY;
	}

	public boolean isInProgress() {
		return approveStatus == EApproveStatus.IN_PROGRESS;
	}

	public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

}
